package itsm.isperp.framework.web.paging;

/**
 * 分页模型
 * 
 * @author Lzx
 * 
 */
public class PagingBean {

	public static final String PAGING_BEAN = "_paging_bean";

	/**
	 * 默认页码大小
	 */
	public static int DEFAULT_PAGE_SIZE = 20;

	/**
	 * 最多显示页码数
	 */
	public static final int SHOW_PAGES = 10;

	/**
	 * 每页开始的索引号
	 */
	public int start;
	/**
	 * 页码大小
	 */
	private int pageSize;
	/**
	 * 总记录数
	 */
	private long totalItems;

	public PagingBean(int start, int pageSize) {
		this.pageSize = pageSize;
		this.start = start;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public long getTotalItems() {
		return totalItems;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(int integer) {
		start = integer;
	}

	public void setTotalItems(Long integer) {
		this.totalItems = integer;
	}

	public void setTotalItems(long totalItems) {
		this.totalItems = totalItems;
	}

	public int getFirstResult() {
		return start;
	}

}